package com.tool_stdy.utils.guava;

import org.apache.commons.lang.StringUtils;

import com.google.common.base.Preconditions;

public class PreconditionsTest {

    
    public static void checkTest(String name){
        try {
            Preconditions.checkState(StringUtils.isNotBlank(name),"name is null or is empty");
            Preconditions.checkNotNull(name, "name is null");
            Preconditions.checkArgument(name.length()>=3, "name length is less");
            System.out.println("Hello:"+name);
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }
    }
    
    public static void main(String[] args) {
        checkTest(null);
    }
}
